<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<title>test jsp title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" /> 
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script type='text/javascript' src='dwr/interface/mytest.js'></script>
<script type='text/javascript' src='dwr/interface/User_Service.js'></script>
<script type='text/javascript' src='js/jqurey-1.10.2-min.js'></script>
<script type='text/javascript' src='js/tin.js'></script>
<script type='text/javascript'>
/*回调函数*/
function load(data) {
    alert(data)
  }
  /**后台函数调用*/
 //mytest.getinfo("liugenhua189",load);
 
// User_Service.test(load);

function fileupload(){
	var uploadfile=dwr.util.getValue("upload");
	    $("#img").show();
	mytest.uploadfile(uploadfile,function(data){
		$("#img").hide();
		$("#text").text(data.filepath);
	});
	
}
wein();
</script>
</head>
<body>

<div id="img" style="display:none;">
 <img src="Dwz_style/loading.gif" />
</div>
<div id="text"> </div>
  <input type="file" name="" id="upload"/>
 <input type="button" onclick="fileupload()" value="上传"/>
 <div style="float:left;width:800px;" id="time">
     
 </div>
 <h1>----------------------------------------------------</h1><br/>
 <p style="display: none" id="p0">Hello</p>
 <p id="p1">p1</p>
 <p id="p2">p2</p>
 <p id="p3">p3</p>
 <p id="p4">p4</p>
 <table id="table">
  <tr>
     <td>td1</td>
  </tr>
  <tr>
     <td>td2</td>
  </tr>
 </table>
 <h1>----------------------------------------------------</h1><br/>
 <div>
   <form action="123.html" id="form1" name="form1" method="post" onsubmit="return submit();">
     <input name="param1" value="param1value" id="param1"></input>
     <input name="param2" value="param2value"></input>
     <input name="param3" value="param3value"></input>
     <input type="submit" value="提交" id="fom1"/>
   </form>
 </div>
 
 <br/>
   <div id="ul1">
 <ul>
    <li class="ul1">list item 1</li>
    <li>list item 2</li>
    <li>list item 3</li>
    <li>list item 4</li>
    <li>list item 5</li>
</ul>
  </div>
<ul>
    <li class="item2">list item 1</li>
    <li>list item 2</li>
    <li>list item 3</li>
    <li>list item 4</li>
    <li>list item 5</li>
</ul>
<input type="button"  value="totop" id="top"></input>
</body>
</html>